<?php
class admin_model extends CI_Model{
	function __construct(){
		parent::__construct();
	}
	function get_admin_list($num, $offset, $where=array(),$order='id DESC') {
		$query = $this->db->like($where)->order_by($order)->get('admin', $num, $offset);
		return $query->result();
	}
	function get_admin_node_list($num, $offset, $where=array(),$order='id DESC') {
		$query = $this->db->like($where)->order_by($order)->get('admin_node', $num, $offset);
		return $query->result();
	}
	function get_admin_power_list($num, $offset, $where=array(),$order='id DESC') 	{
		$query = $this->db->where($where)->order_by($order)->get('admin_power', $num, $offset);
		return $query->result();
	}
}